package command;

/**
 * 乘法命令
 */
public class MutiCommand extends Command {

    @Override
    public int execute(int value) {
        this.value = value;
        return receiver.muti(value);
    }

    @Override
    public int reset() {
        return receiver.muti(1) / value;
    }
}
